public class Course {
    private String id;          // 课程编号
    private String courseName;  // 课程名称
    private String location;    // 上课地点
    private String time;        // 上课时间
    private Teacher teacher;    // 授课教师

    // 构造方法，实例化课程对象
    public Course(String id, String courseName, String location, String time) {
        this.id = id;
        this.courseName = courseName;
        this.location = location;
        this.time = time;
    }

    // 设置授课教师方法
    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    // Getter 方法
    public String getId() {
        return id;
    }

    public String getCourseName() {
        return courseName;
    }

    public String getLocation() {
        return location;
    }

    public String getTime() {
        return time;
    }

    public Teacher getTeacher() {
        return teacher;
    }
}